from graphics import *

# Triangle

def main():
    win = GraphWin()

    a = Point(100, 25)
    b = Point(25, 100)
    c = Point(175, 100)

    triangle = Polygon(a, b, c)
    triangle.setFill('green')
    triangle.draw(win)

    myLabel = Text(Point(100, 150), "My Triangle")
    myLabel.draw(win)

    win.getMouse()
    win.close()

main()
